var score =new Map([['小黑',90],['小明',60]]);

//console.log(score.get('小明')); //变量名.get() 快速查找对应的数据


score.set('小紫',99) //添加新的Key-Value
score.set('小绿',70)  

console.log(score.has('小绿'));   //变量名.has() 判断Key是否存在
score.delete('小绿')              //变量名.delete() 删除key

//一个key只能对应一个value，多次对一个key放入value，后面的值会把前面的值冲掉

//console.log(score);

var TestSet=new Set([1,2,3,4,4,4,'4',44,5]);

TestSet.add(6)    //向set 添加key
TestSet.delete(4)  //删除set元素


//console.log(TestSet);

var array=['1','2','3']


for(var x of score){
    console.log(x);
}



for(var x of array){
    console.log(x);
}


for(var x of TestSet){
    console.log(x);
}